Set the top, bottom, left and right center for elements of known size Product Manager: I have a 200 × 200 picture here. Please help me display it in the middle of the browser! [Method 1] After positioning, set 0 at the top, bottom, left and right positions, and finally set the margin to auto! .photo { width: 200px; height: 200px; position: fixed; top ... Read the full text »
barben
Five years ago (2019-08-06) 3084 Browse 0 Comments
eight Likes
Let's make an analogy I have a web page. When I open it, I will pop up an announcement or advertisement. Anyway, I will pop up a window. If you don't click something like "Don't remind me again", it will pop up next time!!! For example, who and why did you hit him? Implementation method: After the user clicks "Don't pop up again", write a value, for example: buttonchuang=true, and judge buttonchuang after each page is loaded Read the full text »
barben
Five years ago (2019-06-11) 3383 Browse 0 Comments
ten Likes
Remember that the following fields need to be submitted when using Baidu Translation API last week. Field Name type Required parameter describe remarks q TEXT Y Request translation query UTF-8 encoding from TEXT Y Translation source language For example: zh Chinese, en English, can be set to auto automatic detection to TEXT Y Translation language For example: zh Chinese, en English, cannot be set to auto auto detection appid INT ... Read the full text »
barben
Five years ago (2019-05-30) 3024 Browse 0 Comments
ten Likes
Today is another day to fish at home. I want to click BUG to write an online translation function. Then I took down the example interface address in the technical document of Baidu Translation Open Platform, and tried whether it could be requested normally. Use axios to request, really fragrant axios.get(' http://api.fanyi.baidu.com/api/trans/vip/translate?q=apple&from=en&to=zh& ... Read the full text »
barben
Five years ago (2019-05-19) 48477 Browse 2 Comments
eleven Likes
Since the OTA of the mobile phone was upgraded to IOS 12.3, the power consumption has been running low. However, I heard that the problem of power consumption can be solved by cleaning the computer again, so I started without saying a word! iTunes 12.9.4.102 Crashed ITunes 12.9.4.102 has crashed. The minidump file has been created in the following location: C:\Users\Bourbon-Bear\Desktop\iTunes Crash Logs\i ... Read the full text »
barben
Five years ago (2019-05-03) 2855 Browse 0 Comments
seven Likes
Yesterday, the manager came again and said that the company's website was hung up Since I don't understand infiltration, I can only touch it blindly See what's in the home page file? Three terrible labels: There is also a piece of js code, which is basically found on the hacked website when copied to Baidu, but I don't know what it is <script type="text/javascript"> window[" ... Read the full text »
barben
Five years ago (April 20, 2019) 2327 Browse 0 Comments
eight Likes
Origin of the problem Yesterday, the manager came to me suddenly and said that there was a style in the project that would not automatically wrap. I went to have a look and found it strange that word wrapping is normal when Chinese is entered normally. How can a relatively long link carry an overflow operation??? Toss and turn course After many times of Baidu P Label auto wrap Baidu The link in the tag does not break Baidu Look at the overflow attribute again Didn't get the answer, as if Read the full text »
barben
Five years ago (April 12, 2019) 3175 Browse 0 Comments
ten Likes
I met such a person some time ago: Make a friend chain with my website, and have already added our friendship link in advance Then I'm very happy to have a friend chain as a small station with few records!!! But he found something wrong when he clicked into my website from his friend chain page The page was blank for a few seconds before I jumped to my blog. When I looked at the address bar of the browser, I found that it was a jump Next, I clicked on the review element, and immediately had nothing to say to such people! Having said that, I will talk about the Read the full text »
barben
Five years ago (2019-04-02) 2355 Browse 0 Comments
eight Likes
When I published the article Vue.js Realizes Simple Search Function, I just had the need to record the screen, so I rummaged in Doraemon's pocket for half a day (the stories in the animation are deceptive), and finally turned to a GIF screen recording software that is not only small, but also high-quality and high-definition, and can also customize the number of frames!!! Not many people use it, but many people can't find such great things This is the setting of the screen recording software. I won't describe it one by one because there are too many functions. Take the above setting dynamic picture as an example, it can be very clear after zooming in Read the full text »
barben
Five years ago (March 30, 2019) 2058 Browse 0 Comments
eleven Likes
The implementation of this search function is very simple. No matter the method or logic (the idea is at the end of the article), only two methods, filter and match, are used. Now let's go to two simple demos! Demo1: Automatic search when the content of input box changes HTML code <div id="app"> <input type="text" placeholder="Please enter the content you need to query" v-mode Read the full text »
barben
Five years ago (March 30, 2019) 33339 Browse 7 Comments
twenty-eight Likes