Hongmu Notes
Use htmlspecialchars to escape articles in the database

Use htmlspecialchars to escape articles in the database Summary of pitfalls

A small note: use the htmlspecialchars_decode() function to restore escaped characters to HTML tags $str = '<p><span style=";font-family:Microsoft Yahei;font-size:16px"&…
👁 150
PHP ob function record

PHP ob function record Language Notes PHP

Usage of the following three functions ob_get_contents(); ob_end_clean(); ob_start(); You can use these functions to buffer local files and execute local script code. Use ob_start() to save the output code into the buffer, and the page will not be displayed; then use ob_get_contents to get the data in the buffer. o…
👁 144
The solution to the confusion on the file_get_contents page

The solution to the confusion on the file_get_contents page Summary of pitfalls

My page is utf-8, the page of file_get_contents is gb2312, and the Chinese characters are garbled when output. The solution is as follows: Copy the code <?php header("Content-Type:text/html;charset=utf-8"); $keyworld="coal seam&quot…
👁 201
Browser User-Agent summary

Browser User-Agent summary Summary of pitfalls

I. Basic Knowledge Section: HTTP Header – User-Agent. The User-Agent, also known as UA, is a component of the HTTP protocol and belongs to the header fields. It is a special string header that serves as an identifier providing information about the browser type and version, operating system and version, browser engine, and other details when accessing a website. Through this...
👁 447
Detailed description of php $_SERVER

Detailed description of php $_SERVER Language Notes PHP

$_SERVER[&#39;SCRIPT_NAME&#39;] //当前脚本的路径dirname($_SERVER['SCRIPT_NAME'] // dirname() returns the directory portion of a path; $_SERVER['SCRIPT_FILENAME'] // The absolute path of the currently executing script...
👁 151
css mouse hover menu appears

css mouse hover menu appears Language Notes CSS

A menu overlay is displayed when the user hovers the mouse over the image. Use an `a` wrapping element along with an element that contains the menu links. `<figure><img><div>` – Use the `transform` property to animate the image upon hovering, creating a sliding effect. Set the `opacity` property to a negative value; reset it to its original value when the mouse leaves the image...
👁 341
css image overlay effect displayed on mouseover

css image overlay effect displayed on mouseover Language Notes CSS

displays an image overlay effect during hovering. Use the `:before` and `:after` pseudo-elements for the top and bottom bars of the overlay layer, respectively; configure their properties to achieve the desired effect. `:before`, `:after`, `opacity`, `transform`, `transition` – apply these to the overlay text. Set the appropriate values and center the text within the image. `<figcaption>` `display: flex`...
👁 205
css to create a double-sided card that rotates on hover

css to create a double-sided card that rotates on hover Language Notes CSS

Create a double-sided card that rotates on hover. Set the card's properties to "None". For the backface-visibility property, initially set the back side to "None" and the front side to "Visible". For the rotateY() function: set the value to-180deg or 0deg after the card is hovered over; set the value to 180deg or 0deg to apply the rotation effect. Adjust the perspective property as needed.
👁 165
css hamburger button

css hamburger button Language Notes CSS

Display a hamburger menu that transforms into a checkmark button when hovered over. Use a container containing top, bottom, and middle bars. Apply the following styles to the `.hamburger-menu div`: `display: flex; flex-flow: column-reverse`. Add a spacing between the bars using `justify-content: space-between`.
👁 159
css siblings fade

css siblings fade Language Notes CSS

Fade out the hovered element to its sibling level. Apply an animation to the changes made using `a`. `transition-opacity` uses the `&` pseudo-class selector to modify all elements except the one where the mouse is positioned. `:hover:not(.opacity0.5) <div class= "sibling-fade"> <span...`
👁 309
1 291 292 293 294 295 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3752
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3413
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2697