Home  >  Article  >  Web Front-end  >  Han Shunping's latest HTML advanced video tutorial source code courseware recommendation

Han Shunping's latest HTML advanced video tutorial source code courseware recommendation

黄舟
黄舟Original
2017-12-04 11:17:101740browse

"Han Shunping's 2016 Latest HTML Advanced Video Tutorial" is based on "Han Shunping's Basic HTML Video Tutorial" to strengthen and improve HTML knowledge points. The content is slightly more difficult than basic knowledge, but the knowledge points are more practical. HTML (HyperText Mark-up Language), the hypertext tag language, is currently the most widely used language on the Internet and the main language that constitutes web page documents. HTML text is descriptive text composed of HTML commands. HTML tags can describe text, graphics, animations, sounds, tables, links, etc.

Han Shunpings latest HTML advanced video tutorial source code courseware recommendation

Course playback address: http://www.php.cn/course/432.html

The teacher’s teaching style:

The teacher’s lectures are vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; a well-placed humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and warning.

The more difficult part in this video is the marquee:

## tag, which is a tag that appears in pairs, the first tag and the last tag is the scrolling content. The attributes of the tag mainly include behavior, bgcolor, direction, width, height, hspace, vspace, loop, scrollamount, scrolldelay, etc. They are all optional.

In fact, Google has already thought of this problem. TextView can be realized as long as it performs the corresponding operations. Let's look at the code first:

<TextView
        android:id="@+id/tv_marquee"
        android:layout_width="50dp"
        android:layout_height="wrap_content"
        android:background="#000"
        android:ellipsize="marquee"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:marqueeRepeatLimit="marquee_forever"
        android:scrollHorizontally="true"
        android:singleLine="true"
        android:text="陪你度过漫长岁月-陈奕迅"
        android:textColor="#FFF" />

Some of the attributes in the code are necessary: ​​

ellipsize

This attribute indicates that when the text content exceeds the portion, corresponding processing will be performed. Marquee refers to: displaying the entire text content in a marquee manner.

focusable (required)

The TextView that comes with the system is used here. When the TextView is not focused, the marquee function cannot work, so it must be set to true to allow it to have focus. ability.

focusableInTouchMode (required)

In short, it is focused when touched. My understanding is that on a device that can listen to touch events, the current TextView is focused immediately.

marqueeRepeatLimit

The number of times the marquee is repeated, the value marquee_forever means it will never stop. You can use java code to set setMarqueeRepeatLimit for the current TextView instance. If the value is -1, the effect is the same as marquee_forever. 0 means stop (you can also call the startStopMarquee method). If it is greater than zero, it is the original intention.

scrollHorizontally

If the value is true, it indicates horizontal scrolling.

Here we also recommend downloading the source code resources: http://www.php.cn/xiazai/learn/2124

The resources are shared with you. Video courseware and source code

The above is the detailed content of Han Shunping's latest HTML advanced video tutorial source code courseware recommendation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn